package com.gdssoft.pdaweb.service.water.impl;

import java.util.List;

import com.gdssoft.core.service.impl.BaseServiceImpl;
import com.gdssoft.pdaweb.dao.water.WaterMeterMonthPlanDao;
import com.gdssoft.pdaweb.dao.water.WaterMeterMonthPlanReadDao;
import com.gdssoft.pdaweb.model.water.WaterMeterMonthPlan;
import com.gdssoft.pdaweb.model.water.WaterMeterMonthPlanRead;
import com.gdssoft.pdaweb.service.water.WaterMeterMonthPlanReadService;
import com.gdssoft.pdaweb.service.water.WaterMeterMonthPlanService;

public class WaterMeterMonthPlanReadServiceImpl extends BaseServiceImpl<WaterMeterMonthPlanRead> implements WaterMeterMonthPlanReadService{
    private WaterMeterMonthPlanReadDao dao;
	
	public WaterMeterMonthPlanReadServiceImpl(WaterMeterMonthPlanReadDao dao) {
		super(dao);
		this.dao=dao;
	}

	@Override
	public WaterMeterMonthPlanRead getByPlanIdAndMonth(Long planId, String thisMonth, String arr) {
		List<WaterMeterMonthPlanRead> list = dao.getByPlanIdAndMonth(planId, thisMonth, arr);
		if(list.size()>0)
		{
			return list.get(0);
		}
		return null;
	}

}
